package com.java.userservice.service.api;

import com.java.userservice.dao.UserMapper;
import com.java.userservice.model.User;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UserServiceApiImpl implements UserServiceApi{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User listAll(Integer id) {
        return userMapper.get(id);
    }

    @Override
    public List<User> listByIds(List<Integer> id) {
        return userMapper.listByIds(id);
    }
}
